import { createApp } from '../libs/vue.browser.js';

let app = createApp({
  data() {
    return {
      menus: [
        { id: 1, text: '首页' },
        { id: 2, text: '作品' },
        { id: 3, text: '关于' },
      ],
      // 当前选中的菜单id
      current: 1,
    };
  },
  methods: {
    changeMenu(menu) {
      console.log('点击的菜单是:', menu);
      this.current = menu.id;
    },
  },
});

app.mount('#app');
